<?php 
$weekarray=array("日","一","二","三","四","五","六");
$dateTimeStamp=CDateTimeParser::parse($data->reportDate,'yyyy-MM-dd');
?>

<div class="view list-token-item">
<div class="span-8" style="font-size:1.2em;font-weight: bold;">
	<?php echo CHtml::encode($data->reportDate); ?>
	<?php echo "星期".$weekarray[date("w",$dateTimeStamp)];?>
	<?php echo date("Y",$dateTimeStamp); ?>年的第<?php echo date("z",$dateTimeStamp)+1; ?>天
</div>
<div class="span-2">
	<?php echo CHtml::encode($data->employee->fullName); ?>
</div>
<div class="span-4">
	<?php echo CHtml::encode($data->currentProject->name); ?>
</div>
	<?php //echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
<div class="clear"></div>
<div class="span-4">
	<?php echo CHtml::encode($data->getAttributeLabel('workStatus')); ?>： <?php echo CHtml::encode($data->workStatusText); ?>
</div>
<div class="span-10">
<?php if($data->workStatus==1){ ?>
<?php echo CHtml::encode($data->getAttributeLabel('workSummary')); ?>：
	<?php echo CHtml::encode($data->workSummary); ?>
<?php }else{ ?>
	<?php echo CHtml::encode($data->getAttributeLabel('workAbsenceReason')); ?>：
	<?php echo CHtml::encode($data->workAbsenceReason); ?>
<?php } ?>
</div>
<div class="clear"></div>
<div class="span-10">
<?php echo CHtml::encode($data->getAttributeLabel('workNextDayPlan')); ?>：
	<?php echo CHtml::encode($data->workNextDayPlan); ?>
</div>
<div class="clear"></div>
</div>